 include "Errors.thrift"
namespace java com.emagsoftware.partake.global
struct CommentReply {
      1: optional i64 id
      2: required i64 commentId,
      3: required i64 userId,
      4: optional string userTel,
      5: optional string clientVersion,
      6: optional string userAgent,
      7: optional string userChannel,
      8: optional string clientPlatform,
      9: required string replyContent,
      10: optional string verifyUser,
      11: optional i64 verifyTime,
      12: optional i32 verifyResult,
      13: optional i64 replyTime,
      14: required i32 replyOrigin,
      15: optional string userIp,
      16: required i32 replyUserType,
      17: required i32 commentBelongType,
}

struct CommentReplyPageResult  {
      1: required  list<CommentReply> commentReplyList,
      2: required  i32  total
}
service CommonReplyClient{
         void saveCommentReply(
                        1: required CommentReply commentReply,
         )throws (1: Errors.ServiceRuntimeException serviceRuntimeException),

         bool  isCommittedReply (
                        1: required i64 userId,
                        2: required string commentId,
                        3: required bool isGameCommentReply
                        4: required string replyOrigin
         )throws (1: Errors.ServiceRuntimeException serviceRuntimeException) ,

        CommentReplyPageResult queryCommentReplies(
                       1:required string commentId,
                       2:required list<string> replyOrigins,
                       3:required bool isGameCommentReply,
                       4:optional i32 offset,
                       5:optional i32 max
        )throws (1: Errors.ServiceRuntimeException serviceRuntimeException)

}